﻿using ArtheaEngine;

namespace ArtheaServer.Commands
{
    public class SaveCommand : Command
    {
        public SaveCommand() : base("save", "Saves your character.")
        {
        }


        public override void Execute(Character ch, Argument argument)
        {
            if (!(ch is Player)) return;

            World.DataContext.SubmitChanges();

            ch.WriteLine("Character saved.");
        }
    }
}